<?php
/**
 * @author: zhouzhongyuan <435690026@qq.com>
 * @copyright 万虎网络
 * @link http://www.wanhunet.com
 */

namespace common\Utils;


use yii\helpers\Html;

class FormUtils {
    /**
     * @return string
     */
    public static function csrfField()
    {
        return Html::hiddenInput(\Yii::$app->request->csrfParam, \Yii::$app->request->getCsrfToken(), ['id' => 'csrf']);
    }
}